Skip to content

register ruis-render-metal in the monorepo build - #211

Merged
igagis merged 1 commit into
mainfrom
add-native-metal-layer
Dec 3, 2026
Merged

igagis merged 1 commit into
mainfrom
add-native-metal-layer

Conversation

@igagis-bot

@igagis-bot igagis-bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Register the ruis-render-metal submodule in the umbrella build (apps.cmake).
  • The Metal renderer gets its surface (the per-window CA::MetalLayer) through a dedicated surface provider created by the application glue, mirroring the Vulkan renderer's surface class — no native_window-specific method is needed.

This is a prerequisite for the ruis-render-metal library and the ruisapp-metal variant.

Per igagis's review on this PR: the native_window::get_native_metal_layer() virtual was removed in favour of the surface-based approach.

Comment thread src/ruis/render/native_window.hpp Outdated
* @return the CAMetalLayer of the window (as an opaque pointer, e.g. ObjC id<CAMetalLayer>),
* or nullptr if this window is not a Metal window.
*/
virtual void* get_native_metal_layer() const noexcept

@igagis igagis Dec 3, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of introducing this virtual method, can this be achieved by similar approach as surface class in vulkan renderer?

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (b73eceb) to head (868eea8).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #211   +/-   ##
===========================
===========================

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Add the ruis-render-metal submodule registration in the umbrella build.
The Metal renderer gets its surface (the per-window CA::MetalLayer) through
a dedicated surface provider created by the application glue, mirroring the
Vulkan renderer's surface class — no native_window-specific method needed.
@igagis-bot
igagis-bot force-pushed the add-native-metal-layer branch from f09b82f to 868eea8 Compare December 3, 2026 00:51
@igagis-bot igagis-bot changed the title add native_window::get_native_metal_layer() register ruis-render-metal in the monorepo build Dec 3, 2026
@igagis-bot
igagis-bot requested a review from igagis December 3, 2026 00:53
@igagis
igagis merged commit f3b72ae into main Dec 3, 2026
26 of 27 checks passed
@igagis
igagis deleted the add-native-metal-layer branch December 3, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants